home *** CD-ROM | disk | FTP | other *** search
-
-
-
- ALARM(3) MINTLIB LIBRARY FUNCTIONS ALARM(3)
-
-
- N✓NA✓AM✓ME✓E
- alarm - set a process alarm clock
-
- S✓SY✓YN✓NO✓OP✓PS✓SI✓IS✓S
- #include <unistd.h>
-
- unsigned alarm(unsigned sec);
-
- D✓DE✓ES✓SC✓CR✓RI✓IP✓PT✓TI✓IO✓ON✓N
- alarm instructs the alarm clock of the calling process to
- send the signal SIGALRM to the calling process after the
- number of real time seconds specified by sec have elapsed.
- When 32-bit integers are used, the largest value that is
- allowed for sec is (2^31 - 1) / 1000; larger values are
- silently rounded down. Thus, the longest alarm takes
- about 3 weeks to deliver.
-
- Alarm requests are not stacked; successive calls reset the
- alarm clock of the calling process.
-
- If sec is 0, any previously made alarm request is can-
- celled.
-
- S✓SE✓EE✓E A✓AL✓LS✓SO✓O
- p✓pa✓au✓us✓se✓e(✓(3✓3)✓),✓, s✓si✓ig✓gn✓na✓al✓l(✓(3✓3)✓),✓, s✓si✓ig✓gp✓pa✓au✓us✓se✓e(✓(3✓3)✓),✓, s✓si✓ig✓gs✓se✓et✓t(✓(3✓3)✓),✓, T✓Ta✓al✓la✓ar✓rm✓m(✓(2✓2)✓)
-
- R✓RE✓ET✓TU✓UR✓RN✓N V✓VA✓AL✓LU✓UE✓ES✓S
- alarm returns the amount of time previously remaining in
- the alarm clock of the calling process, or 0 if no alarm
- was scheduled.
-
- N✓NO✓OT✓TE✓E
- This call only works when MiNT is active; under TOS, zero
- is always returned.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- MiNT docs 0.1 3 March 1993 1
-
-
-